console.log(
  Object.prototype.toString.call(null)
);


let s = 'hello'

function isType(s) {
  return Object.prototype.toString.call(s).slice(8, -1)
}

if (isType(s) === 'String') {

} 